#ifndef __STRINGFUNCTION_H__
#define __STRINGFUNCTION_H__

#include <string>
namespace BaseFunction
{
	BASEFUNCTION_API std::string Replace(std::string& str, const char* str_to_replace, const char* new_str);

	BASEFUNCTION_API std::string Trim(const std::string& str);
	BASEFUNCTION_API std::string TrimStart(const std::string& str);
	BASEFUNCTION_API std::string TrimEnd(const std::string& str);

	BASEFUNCTION_API std::wstring StringToWString(const std::string& str);
	BASEFUNCTION_API std::string WStringToString(const std::wstring& str);

	BASEFUNCTION_API std::string UnicodeToUTF8(const std::wstring& str);
	BASEFUNCTION_API std::wstring UTF8ToUnicode(const std::string& str);

	BASEFUNCTION_API std::string GB2312ToUTF8(const std::string& str);
	BASEFUNCTION_API std::string UTF8ToGB2312(const std::string& str);

	BASEFUNCTION_API std::string TransformToUpper(const std::string& str);
	BASEFUNCTION_API std::string TransformToLower(const std::string& str);
}
#endif